package com.test.order.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PutMapping;

@FeignClient(value = "seata-account-service", path = "/account")
public interface AccountService {

    @PutMapping("/debit/{userId}/{money}")
    void debit(@PathVariable("userId") String userId,
               @PathVariable("money") Integer money);

}
